package com.springcloud.demo.servicefeign.controller;

import com.springcloud.demo.servicefeign.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zhouyang
 * @Description
 * @date 2018/08/07
 */
@RestController
public class TestController {

    @Resource
    TestService testService;

    @GetMapping("hi")
    public String hi(String name){
        String hi = testService.hi(name);
        return hi;
    }


}
